﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BarberShop.BLL;
using BarberShop.Model;

public partial class BrandManage : BasePage
{

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            GetBrandData();
        }
    }

    //getData
    protected void GetBrandData()
    {
        var data = BrandInfoBLL.GetAllBrandList();
        this.Grid_Brand.DataSource = data;
        this.Grid_Brand.DataBind();
    }
    protected void Grid_Brand_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
    {
        this.Grid_Brand.PageIndex = e.NewSelectedIndex;
    }
}